"""

@Date    ：2025-08-15 15:52 
"""

from django import forms


class Form(forms.Form):
    @property
    def error(self):
        error_data = {}
        for key, value in self.errors.get_json_data().items():
            error_data[key] = value[0]['message']
        return error_data
